home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000028_heiko@lotte.sax.de_Fri Nov 4 11:12:14 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  3KB

  1. Received: from irz301.inf.tu-dresden.de by cs.umb.edu with SMTP id AA03344
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 4 Nov 1994 05:07:46 -0500
  3. Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP
  4.     (5.67b+/DEC-Ultrix/4.3) id AA17175; Fri, 4 Nov 1994 11:06:09 +0100
  5. Received: from lotte.sax.de by sax.sax.de with UUCP
  6.     (5.67b+/DEC-Ultrix/4.4) id AA14607; Fri, 4 Nov 1994 11:06:49 +0100
  7. Received: by iva.lotte.sax.de (Linux Smail3.1.28.1 #3)
  8.     id m0r3Kgx-0005GPC; Fri, 4 Nov 94 10:12 MET
  9. Message-Id: <m0r3Kgx-0005GPC@iva.lotte.sax.de>
  10. From: heiko@lotte.sax.de (Heiko Schlittermann)
  11. Subject: bug(?) in determing mfmode from config files .. + solution
  12. To: tex-k@cs.umb.edu
  13. Date: Fri, 4 Nov 1994 10:12:14 +0100 (MET)
  14. X-Phone/Fax: +49 351 4677438
  15. X-Mailer: ELM [version 2.4 PL23]
  16. Content-Type: text
  17. Content-Length: 2352      
  18.  
  19. Hi out there,
  20.  
  21. perhaps it's a bug, perhaps a feature ... 
  22. I noticed the following behaviour:  when I run 
  23.  
  24.     `dvips -Plqhires file.dvi'
  25.  
  26. never the mfmode lqhires was used.  Although I have an config.lqhires
  27. having a line
  28.  
  29.     M lqhires
  30.  
  31. And I have a config.ps (for default options) having a line 
  32.  
  33.     M cx
  34.  
  35. so always mfmode cx was used, despite the `-Plqhires' switch.  (The
  36. -mode switch worked around.)
  37.  
  38. [
  39.     Oh, dvips --version says
  40.         This is dvipsk 5.58c Copyright 1986, 1994 Radical Eye Software
  41.     I built it from the source on 
  42.         Linux iva 1.0.8 #13 Thu Nov 3 17:53:26 MET 1994 i486
  43. ]
  44.  
  45.  
  46. I understood, that config.ps is read first, then options should be
  47. overridden by config.lqhires.  For other options than mfmode it can be
  48. true (never tested)...
  49.  
  50. So I did the following patches:
  51.  
  52. --- dvipsk-5.58c/dvipsk/dvips.c    Sun Oct 23 22:58:23 1994
  53. +++ patched/dvipsk/dvips.c    Fri Nov  4 09:42:06 1994
  54. @@ -129,6 +129,7 @@
  55.  Boolean disablecomments ;     /* should we suppress any EPSF comments? */
  56.  char *printer ;               /* what printer to send this to? */
  57.  char *mfmode;                  /* default MF mode */
  58. +int mfmode_option;              /* set if mfmode is supplied at cmdline */
  59.  frametype frames[MAXFRAME] ;  /* stack for virtual fonts */
  60.  fontdesctype *baseFonts[256] ; /* base fonts for dvi file */
  61.  integer pagecost;               /* memory used on the page being prescanned */
  62. @@ -443,7 +444,6 @@
  63.     int firstext = -1 ;
  64.  #endif
  65.     register sectiontype *sects ;
  66. -   int mfmode_option = 0;
  67.  
  68.     kpse_set_progname (argv[0]);
  69.     
  70. diff -ru dvipsk-5.58c/dvipsk/resident.c patched/dvipsk/resident.c
  71. --- dvipsk-5.58c/dvipsk/resident.c    Sun Oct 23 22:54:01 1994
  72. +++ patched/dvipsk/resident.c    Fri Nov  4 09:42:32 1994
  73. @@ -82,6 +82,7 @@
  74.  extern int vmaxdrift ;
  75.  extern char *printer ;
  76.  extern char *mfmode ;
  77. +extern int mfmode_option;
  78.  extern Boolean sendcontrolD ;
  79.  extern unsigned lastresortsizes[] ;
  80.  extern integer hoff, voff ;
  81. @@ -403,7 +404,7 @@
  82.  case 'M' :
  83.           /* If we had the compilation default, replace it. But
  84.              if they specified one with -mode, keep it.  */
  85. -         if (!mfmode)
  86. +         if (!mfmode_option)
  87.             mfmode = configstring(was_inline+1, 0) ;
  88.           break ;
  89.  case 'o' :
  90.  
  91. - heiko -
  92.  
  93. PS: I'm not a member of this list yet - so please CC your response to  
  94. <heiko@lotte.sax.de> - thanx.
  95.  
  96.